﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyList_Enumerator
{
    class Program
    {
        static void Main(string[] args)
        {
            //int[] mas = new int[6] { 12, 14, 16, 18, 20, 22 };

            //MyList<int> list = new MyList<int>(mas);

            Person[] t = new Person[]{
                new Person{Name = "asas", Age =12},
                new Person{Name = "asdaqw", Age =232},
                new Person{Name = "wer", Age =24}
            };

            MyList<Person> list = new MyList<Person>(t);


            foreach (Person item in list)
            {
                Console.Write("{0}", item.ToString());
            }

            Console.ReadKey();
        }
    }
}
